package system

import "mycms/model/system"

// 角色列表返回
type RoleListResponse struct {
	Id        uint   `json:"id"`
	Name      string `json:"name" form:"name" `
	Code      string `json:"code" form:"code" `
	Status    uint   `json:"status" form:"status" `
	CreatedAt string `json:"created_at" form:"created_at" `
	Remark    string `json:"remark" form:"remark" `
}

// 角色详情返回
type RoleInfoResponse struct {
	Id       uint   `json:"id" form:"id" binding:"required" `
	Name     string `json:"name" form:"name" binding:"required" `
	Code     string `json:"code" form:"code" binding:"required" `
	Status   uint   `json:"status" form:"status" binding:"required" `
	Remark   string `json:"remark" form:"remark" `
	RoleMenu []*system.RoleMenu
}
